package com.yc.tc.beans;

import java.io.Serializable;

/**
 * 景点基本信息表
 * 
 * @author Henry
 * 
 */
public class JdBaseInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	private int jbid; // 编号
	private int jtid;
	private String jname; // 景点名称
	private double price; // 原价
	private double act; // 折扣
	private String city; // 所在城市
	private double temp;
	private String flag;

	@Override
	public String toString() {
		return "JdBaseInfo [jbid=" + jbid + ", jtid=" + jtid + ", jname="
				+ jname + ", price=" + price + ", act=" + act + ", city="
				+ city + ", temp=" + temp + ", flag=" + flag + "]";
	}

	public int getJbid() {
		return jbid;
	}

	public void setJbid(int jbid) {
		this.jbid = jbid;
	}

	public int getJtid() {
		return jtid;
	}

	public void setJtid(int jtid) {
		this.jtid = jtid;
	}

	public String getJname() {
		return jname;
	}

	public void setJname(String jname) {
		this.jname = jname;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getAct() {
		return act;
	}

	public void setAct(double act) {
		this.act = act;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public double getTemp() {
		return temp;
	}

	public void setTemp(double temp) {
		this.temp = temp;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		long temp;
		temp = Double.doubleToLongBits(act);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + ((city == null) ? 0 : city.hashCode());
		result = prime * result + ((flag == null) ? 0 : flag.hashCode());
		result = prime * result + jbid;
		result = prime * result + ((jname == null) ? 0 : jname.hashCode());
		result = prime * result + jtid;
		temp = Double.doubleToLongBits(price);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		temp = Double.doubleToLongBits(this.temp);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		JdBaseInfo other = (JdBaseInfo) obj;
		if (Double.doubleToLongBits(act) != Double.doubleToLongBits(other.act))
			return false;
		if (city == null) {
			if (other.city != null)
				return false;
		} else if (!city.equals(other.city))
			return false;
		if (flag == null) {
			if (other.flag != null)
				return false;
		} else if (!flag.equals(other.flag))
			return false;
		if (jbid != other.jbid)
			return false;
		if (jname == null) {
			if (other.jname != null)
				return false;
		} else if (!jname.equals(other.jname))
			return false;
		if (jtid != other.jtid)
			return false;
		if (Double.doubleToLongBits(price) != Double
				.doubleToLongBits(other.price))
			return false;
		if (Double.doubleToLongBits(temp) != Double
				.doubleToLongBits(other.temp))
			return false;
		return true;
	}

}
